Introduction to Database Management Systems by Kahate Atul
Author:Kahate, Atul...
Language: eng
Format: epub
Published: 2014-05-21T23:17:03.374000+00:00
Fig. 6.19 Granting selective UPDATE privileges
The names of the columns for which the user should have update privilege appear inside the bracket after the table name.
For example, let us assume that the Sales table contains four columns, namely Salesperson_ID, Customer_ID, Sale_Date and Sale_Amount. Let us assume that Ana is a sales officer, who must not be able to update the sales amount. She should be allowed to update the values in the three other columns. In such a case, Prashant can issue the following GRANT statement:
GRANT UPDATE ON Sales (Salesperson_ID, Customer_ID, Sale_Date) TO Ana;
Now, Ana can update the ID of the salesperson, the ID of the customer and the date on which the sale happened in the Sales table. However, she cannot update the values in the amount field. Of course, Prashant can allow the UPDATE privilege on only one column (rather than on multiple columns) to any user. For example, Prashant can allow Radhika to update just the date on which the sale happened:
GRANT UPDATE ON Sales (Sale_Date) TO Radhika;
REFERENCES privilege is similar in concept to UPDATE privilege. The idea behind REFERENCES privilege can be summarised thus:
When user A grants the REFERENCES privilege to user B, user B can create a foreign key reference on a table owned by A.
Download
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.
The Mikado Method by Ola Ellnestam Daniel Brolund(25283)
Hello! Python by Anthony Briggs(24336)
Secrets of the JavaScript Ninja by John Resig Bear Bibeault(23429)
Kotlin in Action by Dmitry Jemerov(22507)
The Well-Grounded Java Developer by Benjamin J. Evans Martijn Verburg(21969)
Dependency Injection in .NET by Mark Seemann(21838)
OCA Java SE 8 Programmer I Certification Guide by Mala Gupta(20707)
Algorithms of the Intelligent Web by Haralambos Marmanis;Dmitry Babenko(19521)
Grails in Action by Glen Smith Peter Ledbrook(18603)
Adobe Camera Raw For Digital Photographers Only by Rob Sheppard(17031)
Sass and Compass in Action by Wynn Netherland Nathan Weizenbaum Chris Eppstein Brandon Mathis(15842)
Secrets of the JavaScript Ninja by John Resig & Bear Bibeault(13690)
Test-Driven iOS Development with Swift 4 by Dominik Hauser(11851)
Jquery UI in Action : Master the concepts Of Jquery UI: A Step By Step Approach by ANMOL GOYAL(11151)
A Developer's Guide to Building Resilient Cloud Applications with Azure by Hamida Rebai Trabelsi(10621)
Hit Refresh by Satya Nadella(9192)
The Kubernetes Operator Framework Book by Michael Dame(8566)
Exploring Deepfakes by Bryan Lyon and Matt Tora(8400)
Robo-Advisor with Python by Aki Ranin(8360)